﻿using System;
using System.Collections.Generic;

namespace T.FAS.Runtime.Base.Entity
{
    /// <summary>
    /// 行为结果项属性
    /// </summary>
    public class ViewModelItemProperty
    {
        public string ViewModelItemCode { get; set; }
        public string ID { get; set; }
        public string Code { get; set; }
        public string Name { get; set; }
        public string Description { get; set; }
        public DataType DataType { get; set; }
        public bool IsPrimaryKey { get; set; }
        public int SortOrder { get; set; }
        public bool IsDetail { get; set; }
        /// <summary>
        /// 是否是虚拟字段，标记为虚拟字段的列，不参与VM实际返回值结构的生成
        /// </summary>
        /// <example>
        /// 数据库表中的外键关联列,比如Department表中的CompanyID列，
        /// </example>
        public bool IsVirtual { get; set; }
        /// <summary>
        /// 关联属性列
        /// </summary>
        public string RelatePropertyCode { get; set; }
        public ViewModelItemSchema SubSchema { get; set; }
    }
}
